package com.smarth.zhizulian.bean.message;

import com.chad.library.adapter.base.entity.MultiItemEntity;

/**
 * Created by 18865 on 2018/2/28.
 */

public class MessageAppNews implements MultiItemEntity {
    /**
     * appUserId : 3
     * content : 恭喜您获得了包赚咨询为您派发得新手红包3500金币，收徒能享受更多红包，继续加油哦！
     * createTime : 2018-02-28 10:27:24
     * id : 1
     * messageAppId : 1
     * title : 新手红包
     */

    public static final int TYPE_LOOKMORE = 0;
    public static final int TYPE_NOMORE = 1;

    private long appUserId;
    private String content;
    private String createTime;
    private long id;
    private int messageAppId;  //1 新手红包 2 新手任务 3 每日幸运红包 4 升级提示 5 降级提示 6 收徒提醒 7 账户清零提醒 8 徒弟首次提现成功奖励提醒 9 提现成功 10 提现失败
    private String title;

    public long getAppUserId() {
        return appUserId;
    }

    public void setAppUserId(long appUserId) {
        this.appUserId = appUserId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public int getMessageAppId() {
        return messageAppId;
    }

    public void setMessageAppId(int messageAppId) {
        this.messageAppId = messageAppId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Override
    public int getItemType() {
        //1 新手红包 2 新手任务 3 每日幸运红包 4 升级提示 5 降级提示 6 收徒提醒 7 账户清零提醒 8 徒弟首次提现成功奖励提醒 9 提现成功 10 提现失败
        switch (messageAppId) {
            case 1:
            case 2:
            case 3:
            case 6:
            case 8:
            case 9:
            case 10:
                return TYPE_LOOKMORE;
            case 4:
            case 5:
            case 7:
                return TYPE_NOMORE;
        }
        return TYPE_NOMORE;
    }
}
